import Vue from 'vue'
import App from './App.vue'
import router from "./router";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Vuex from 'vuex'
import Moment from 'moment'
// import './mock'


// 导入全局样式表
import './assets/css/global.css'

// 导入字体图标
import './assets/fonts/iconfont.css'

Vue.use( Vuex );

const store = new Vuex.Store({
  state:{ 
   student:{
   }
  },
  mutations:{
    student (state, data ) {
      state.student = data
    }
  }
    //待添加
})

Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.filter('converTime',function(data,formatStr = 'YYYY-MM-DD '){  
  return Moment(data).format(formatStr);
});


new Vue({
  router,
  render: h => h(App),
  store
}).$mount('#app')
